.eve-tree {
  user-select: none;
  &__custom-tree-node {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
  }
  &__filter {
    margin-bottom: 4px;
  }
  &__custom-tree-button {
    display: none;
    padding-left: 10px;
  }
  &__custom-tree-label {
    cursor: pointer;
  }
  &__scroll {
    padding-bottom: 10px;
  }
}

//全部
.eve-tree__is-active.el-tree--highlight-current {
  .el-tree-node.is-current > .el-tree-node__content {
    background-color: transparent;
    color: $--color-primary;
  }
}
//only叶子
.el-tree--highlight-current {
  .el-tree-node.is-current > .el-tree-node__content {
    background-color: transparent;
    .is-leaf + .eve-tree__custom-tree-node {
      .eve-tree__custom-tree-label {
        color: $--color-primary;
      }
    }
  }
}

.eve-tree {
  .el-tree-node__content {
    :focus {
      background: transparent;
    }
    //hover背景色
    &:hover {
      background-color: $--color-primary-light-9;
    }
  }
}

.eve-tree__custom-tree:hover {
  .eve-tree__custom-tree-button {
    display: block;
  }
}

.is-leaf + .eve-tree__custom-leaf-tree:hover {
  .eve-tree__custom-tree-button {
    display: block;
  }
}
